<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>购物车</title>
</head>
<body>
<a th:href="@{/cart/delAllCart}">清空购物车</a>
<form th:action="@{/cart/addOrderFromCart}" method="get">
    <div th:each="cart:${cartList}">
        <input type="checkbox" name="cartId" th:value="${cart.cartId}">
        <div style="border-bottom: 1px solid black">
            店铺：<span th:text="${cart.goods.seller.storeName}"></span><br>
            <img th:src="${cart.goods.goodsPicture}" width="100" height="120"/>
            <span th:text="${cart.goods.goodsName}"></span>
            ￥<span th:text="${cart.goods.goodsPrice}"></span>
            x<span th:text="${cart.cartGoodsNumber}"></span>
            <a th:href="@{/cart/delCart(cartId=${cart.cartId})}">删除</a>
        </div>
        </input>
    </div>
    <input type="submit" value="结 算">
</form>
</body>
</html>